package com.qishon.uic.domain.infrastructure.domain.model;


import com.qishon.uic.domain.model.Account;
import com.qishon.uic.domain.model.AccountRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * account repository implementation
 *
 * @author linux_china
 */
@Repository
public class AccountRepositoryImpl implements AccountRepository {
    public void create(Account account) {

    }

    public void update(Account account) {

    }

    public Optional<Account> findOne(long id) {
        return null;
    }

    @Override
    public String findByEmail(String email) {
        Account acc = new Account();
        acc.setNick("qishon");
        return acc.getNick();
    }
}
